package com.njsf.dao;

import com.njsf.pojo.Order;
<<<<<<< HEAD
import org.springframework.stereotype.Repository;

=======
import com.njsf.pojo.OrderInfoVO;
import com.njsf.pojo.OrderListLevel1;
import com.njsf.pojo.OrderListLevel2;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
@Repository
public interface OrderMapper {

    int insert(Order order);

<<<<<<< HEAD
=======
    int updateOrderInfo(@Param("phone") String phone, @Param("address") String address, @Param("orderNumber") String orderNumber);

    /*查询所有的订单信息*/
    List<OrderListLevel1> findAll();

    /*查询具体用户的订单信息*/
    List<OrderListLevel2> findAllByOneUser(@Param("id") Integer id);

    Order findByOrderNumber(String orderNumber);

    int updatePayState(String orderNumber);

    List<String> findOrderNumberByUid(int uid);

    List<OrderInfoVO> findOrderInfoByOrderNum(String orderNumber);
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
}
